@use '../config';
@use '../utils/util';

/* - Accessibility 屏幕阅读器 -
************************* */

@if util.expect(config.$abbr-screen-reader) {

  #{util.class-generator(config.$abbr-screen-reader, only)}
  {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  #{util.class-generator('not', config.$abbr-screen-reader, only)}
  {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

}